package com.ws.entity.test03;

/**
 * @author 王硕
 * @version jdk21
 * @className personB
 * @description
 * @date 2024/11/5 20:15
 */
public class personB {
    public String name;
    public int choices;

    public void punch(){
        switch (choices){
            case 1:
                System.out.println("石头");
                break;
            case 2:
                System.out.println("剪刀");
                break;
            case 3:
                System.out.println("布");
                break;
        }
    }

    public personB() {
    }

    public personB(String name, int choices) {
        this.name = name;
        this.choices = choices;
    }
}
